package com.fly.studio.home.manage.controller;

import com.fly.studio.home.manage.domain.request.HomePageRequest;
import com.fly.studio.home.manage.domain.response.ResponseVO;
import com.fly.studio.home.manage.domain.response.home.HomePageVO;
import com.fly.studio.home.manage.service.FloorService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Floor Controller
 *
 * @author Mr.Fu
 * @date 2022/9/3 上午9:58
 */
@RestController
@RequestMapping(value = "/floor")
public class FloorController {

    @Resource
    private FloorService floorService;

    @PostMapping
    public ResponseVO<HomePageVO> homePage(@RequestBody HomePageRequest request) {
        return ResponseVO.success(floorService.homePage(request));
    }
}
